﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for category
/// </summary>
public class category
{
    private int category_id;
    private string category_name;
    private string category_des;
    private string category_image;
    private int parent_id;
    private DateTime date_added;
    private DateTime date_modified;

#region

    public int CategoryID
    {
        get { return category_id; }
        set { category_id = value; }
    }    

    public string CategoryName
    {
        get { return category_name; }
        set { category_name = value; }
    }    

    public string CategoryDes
    {
        get { return category_des; }
        set { category_des = value; }
    }    

    public string CategoryImage
    {
        get { return category_image; }
        set { category_image = value; }
    }    

    public int ParentID
    {
        get { return parent_id; }
        set { parent_id = value; }
    }    

    public DateTime DateAdded
    {
        get { return date_added; }
        set { date_added = value; }
    }    

    public DateTime DateModified
    {
        get { return date_modified; }
        set { date_modified = value; }
    }
#endregion

    public category()
	{
        this.category_id = 0;
        this.category_name = null;
        this.category_des = null;
        this.category_image = null;
        this.date_added = DateTime.Now;
        this.date_modified = DateTime.Now;
	}

    public category(int category_id, string category_name, string category_des, string category_image, int parent_id, DateTime date_added, DateTime date_modified)
    {
        this.category_id = category_id;
        this.category_name = category_name;
        this.category_des = category_des;
        this.category_image = category_image;
        this.parent_id = parent_id;
        this.date_added = date_added;
        this.date_modified = date_modified;
    }
}